import { CommonDrawerType } from "../constant";
import { drawerManager, useDrawerFactory } from "../index";

import OrderDrawer from "../../components/order-drawer.vue";

export interface OrderDrawerMountOptions {
  id?: any;
}

export const orderDrawer = drawerManager.register<OrderDrawerMountOptions>(
  CommonDrawerType.OrderDrawer,
  OrderDrawer,
  "OrderDrawer",
  "销售单"
);

export const useOrderDrawer = useDrawerFactory(orderDrawer);
